package com.zyb.eduorder.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zyb.eduorder.entity.PayLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyb.eduorder.entity.vo.PayQuery;

import java.util.Map;

/**
 * <p>
 * 支付日志表 服务类
 * </p>
 *
 * @author testJava
 * @since 2022-04-13
 */
public interface PayLogService extends IService<PayLog> {

    //生成微信支付二维码接口
    //参数是订单号
    Map<String, String> createNative(String orderNo);

    //查询订单状态
    Map<String, String> queryPayStatus(String orderNo);

    //支付成功
    //添加记录到支付表，更新订单表订单状态
    void updateOrdersStatus(Map<String, String> map);

    //条件查询带分页支付列表
    IPage<PayLog> getPayOrderPage(Long page, Long limit, PayQuery payQuery);
}
